Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pa11y

Package Overview
Dependencies
Maintainers
7
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pa11y

Pa11y is your automated accessibility testing pal

  • 6.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
144K
decreased by-11.97%
Maintainers
7
Weekly downloads
 
Created

What is pa11y?

Pa11y is an automated accessibility testing tool that helps developers ensure their web applications meet accessibility standards. It can be used to run accessibility tests on web pages and generate reports on any issues found.

What are pa11y's main functionalities?

Run Accessibility Tests

This feature allows you to run accessibility tests on a given URL. The results will include any accessibility issues found on the page.

const pa11y = require('pa11y');

(async () => {
    const results = await pa11y('https://example.com');
    console.log(results);
})();

Custom Configuration

Pa11y allows you to customize the accessibility tests by specifying standards (like WCAG2AA) and other options such as taking a screenshot of the page.

const pa11y = require('pa11y');

(async () => {
    const results = await pa11y('https://example.com', {
        standard: 'WCAG2AA',
        screenCapture: './screenshot.png'
    });
    console.log(results);
})();

Programmatic API

You can use Pa11y's programmatic API to perform actions on the page before running the accessibility tests. This is useful for testing dynamic content.

const pa11y = require('pa11y');

(async () => {
    const results = await pa11y('https://example.com', {
        actions: [
            'click element #button',
            'wait for element #result to be visible'
        ]
    });
    console.log(results);
})();

Other packages similar to pa11y

Keywords

FAQs

Package last updated on 11 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc